<?php

$cars=array("命中率","cys","黄晓明");
echo $cars[1];
$cars [0]="Audi";

echo "<per>";
print_r($cars);
echo count($cars);



echo "<hr/>";
echo "foreach ::::.<br/>";
foreach ($cars as $value){
      echo $value ."<br/>";
}

$messages = array(
    'pic'=>"images/2.jpg",
    'name'=>"avatar",
    'content' => '天天好心情2333"<span> (来之火星“女侠”的留言)</span>',
    'sex'=>'male'
);

foreach ($messages as $key => $value){
    echo $key ."=>".$value ."<br/>";
}
?>
